package com.example.baidu_map_plugin.mapview;

import androidx.annotation.NonNull;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry;

public class FlutterNativeBaiDuMapPlugin implements FlutterPlugin {
    @Override
    public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
        ShimPluginRegistry shimPluginRegistry = new ShimPluginRegistry(binding.getFlutterEngine());
        ShimPluginRegistry.Registrar registrar = shimPluginRegistry.registrarFor("com.example.baidu_map_plugin.mapview.FlutterNativeBaiDuMapPlugin");
        FlutterNativeMapViewFactory.registerWith(registrar);
    }

    @Override
    public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {

    }
}
